/* 
 *  <copyright file="Globals.cs" company="Wesley Jowitt">
 *  
 *  SobrietyEngine: Copyright (c) 2011 Wesley Jowitt
 *  
 *  This software is distributed under a software license.
 *   * As of the creation time of this file, the license in use is the Microsoft Permissive License (Ms-PL) 
 *    * The license can be viewed at:
 *     * License.Txt in the root folder of this project
 *      * http://sobrietyengine.codeplex.com/license
 *       * http://www.microsoft.com/opensource/licenses.mspx
 *       
 *  </copyright>
 *   */

using System;
using System.Collections.Generic;

namespace SEGameExample
{
    static class Globals
    {
        //these values are from farseers collision catagories
        [Flags]
        public enum CollisionCats 
        { 
            None = 0,
            Walls = 1,
            ActorHitBoxes = 2,
            ActorMovers = 4,
            Scenery = 8,
            Projectiles = 16,
            Enemies = 32,
            Triggers = 64,
            All = Int32.MaxValue
        }

        public enum GameTypes
        {
            RandomCoop = 0,
            RandomDeathmatch = 1,
            Puzzle = 2,
            Story = 3,
            Race = 4,
            UNDEFINED = 5
        }

        public class ActiveGameTypes
        {
            List<GameTypes> activeGameTypes;

            public List<GameTypes> ActiveTypes
            {
                get { return activeGameTypes; }
            }

            static ActiveGameTypes instance;
            static public ActiveGameTypes Instance
            {
                get
                {
                    if (instance == null)
                    {
                        instance = new ActiveGameTypes();
                    }
                    return instance;
                }
            }
            ActiveGameTypes()
            {
                activeGameTypes = new List<GameTypes>();
                activeGameTypes.Add(GameTypes.RandomCoop);
                activeGameTypes.Add(GameTypes.RandomDeathmatch);
                activeGameTypes.Add(GameTypes.Puzzle);
            }

        }
    }
}